import Vue from 'vue'
import VueRouter from 'vue-router'

import Home from '../views/Home.vue'
import Register from "../views/Register.vue"
import Login from "../views/Login.vue"
import Me from "../views/Me.vue"
import Article from "../views/Article.vue"
import Account from "../views/Account.vue"
import Collect from "../views/Collect.vue"
import Setting from "../views/Setting.vue"
import Assist from "../views/Assist.vue"
import About from "../views/About.vue"
import Service from "../views/Service.vue"

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/me',
    name: 'Me',
    component: Me
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  },
  {
    path: '/article',
    name: 'Article',
    component: Article
  },
  {
    path: '/account',
    name: 'Account',
    component: Account
  },
  {
    path: '/collect',
    name: 'Collect',
    component: Collect
  },
  {
    path: '/setting',
    name: 'Setting',
    component: Setting
  },
  {
    path: '/assist',
    name: 'Assist',
    component: Assist
  },
  {
    path: '/about',
    name: 'About',
    component: About
  },
  {
    path: '/service',
    name: 'Service',
    component: Service
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
